#pragma once

#include "common/plugin.h"
#include <vector>
#include <windows.h>
using namespace std;

class CPluginController
{
private:
    vector<HINSTANCE> m_lib_handles;
    vector<IPlugin*> m_plugins;

public:
    CPluginController();
    virtual ~CPluginController();
    // 成功加载plugin返回0
    int InitPlugin();
    void UnInitPlugin();
    int ProcessRequest(int id);
    void ProcessHelp();
};

